home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-07-15 | 1.1 KB | 33 lines | [TEXT/KAHL] |
-
- Application: IconDimming
-
- Description: In System 7, selected non-open files are shown as
- dimmed icons on the desktop. This snippet shows
- two different ways to achieve the same results in
- an application.
-
- The first method uses a custom color search
- procedure in place of the current device's to
- create the dimming effect. Once the image has
- been copied to the destination, the custom
- search proc is then removed.
-
- In the second method the RGB components of the
- icon's colortable entries are all dimmed before
- the image is copied into the destination. The
- dimming algorithm used in this method simply
- darkens each RGB component in half then takes
- the two smaller components and darkens them
- in half again. In System 7, this is similar
- to what the Finder does.
-
- Files: IconDimming.π
- IconDimming.c
- IconDimming.π.rsrc
-
- Programmer: Edgar Lee
- Organization: Apple Computer, Inc.
- Department: Developer Technical Support, DTS
- Language: C (Think C version 5.0.1)
- Date Created: 2-27-92
-